<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <title>英你而来 - 讨论页面</title>
  <link rel="stylesheet" href="https://unpkg.com/element-plus/dist/index.css">
  <link href="https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@400;500;700&display=swap" rel="stylesheet">
  <!--引入vue相应文件-->
  <script src="https://unpkg.com/vue/dist/vue.js"></script>
  <!-- 引入ElementUI样式 -->
  <link rel="stylesheet" href="https://unpkg.com/element-ui/lib/theme-chalk/index.css">
  <!-- 引入ElementUI组件库 -->
  <script src="https://unpkg.com/element-ui/lib/index.js"></script>
  <style>
    :root {
      --primary-color: #105186;
      --secondary-color: #092B42;
      --light-bg: #F0F2F3;
      --text-gray: #666666;
      --accent-red: #E74C3C;
      --accent-orange: #FCB338;
      --dark-text: #171C1D;
      --accent-green: #71BF50;
      --white: #ffffff;
      --card-shadow: 0 4px 20px rgba(16, 81, 134, 0.1);
      --hover-shadow: 0 8px 30px rgba(16, 81, 134, 0.15);
      --hover-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      --border-radius: 12px;
      --spacing-unit: 1rem;
    }

    body {
      font-family: 'Noto Sans TC', sans-serif;
      margin: 0;
      padding: 0;
      background: var(--light-bg);
      padding-top: 80px;
    }

    #nav {
      position: fixed;
      top: 0;
      width: 100%;
      height: 80px;
      background: rgba(255, 255, 255, 0.98);
      backdrop-filter: blur(12px);
      box-shadow: var(--card-shadow);
      z-index: 1000;
      transition: all 0.3s ease;
      border-bottom: 1px solid rgba(16, 81, 134, 0.1);
    }

    .nav-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 var(--spacing-unit);
      height: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .brand-group {
      display: flex;
      align-items: center;
      gap: calc(var(--spacing-unit) * 2);
    }

    .brand-logo {
      width: 50px;
      height: 50px;
      border-radius: var(--border-radius);
      transition: transform 0.3s ease;
      box-shadow: var(--card-shadow);
    }

    .brand-logo:hover {
      transform: scale(1.05);
      box-shadow: var(--hover-shadow);
    }

    .brand-text-container {
      display: flex;
      gap: calc(var(--spacing-unit) * 2);
    }

    .brand-text {
      font-size: 1rem;
      font-weight: 500;
      color: var(--dark-text);
      padding: calc(var(--spacing-unit) * 0.5) var(--spacing-unit);
      border-radius: 8px;
      transition: var(--hover-transition);
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }

    .brand-text::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 0;
      width: 100%;
      height: 2px;
      background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
      transform: scaleX(0);
      transition: var(--hover-transition);
      transform-origin: left;
    }

    .brand-text:hover {
      color: var(--primary-color);
      background: rgba(16, 81, 134, 0.05);
    }

    .brand-text:hover::after,
    .brand-text.active::after {
      transform: scaleX(1);
    }

    .right-nav-user-group {
      display: flex;
      align-items: center;
      gap: calc(var(--spacing-unit) * 1.5);
      height: 100%;
      padding: calc(var(--spacing-unit) * 0.5) 0;
    }

    .nav-menu {
      display: flex;
      align-items: center;
      gap: calc(var(--spacing-unit) * 1.5);
      height: 100%;
    }

    .avatar-wrapper {
      position: relative;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      overflow: hidden;
      cursor: pointer;
      transition: var(--hover-transition);
      box-shadow: var(--card-shadow);
    }

    .avatar-wrapper:hover {
      transform: scale(1.05);
      box-shadow: var(--hover-shadow);
    }

    .user-avatar {
      width: 100%;
      height: 100%;
      object-fit: cover;
      border-radius: 50%;
      background: #e0e0e0;
      border: 3px solid #fff;
      transition: var(--hover-transition);
    }

    .nav-item {
      display: flex;
      align-items: center;
      font-size: 1rem;
      color: var(--dark-text);
      cursor: pointer;
      transition: var(--hover-transition);
      padding: calc(var(--spacing-unit) * 0.5);
      border-radius: var(--border-radius);
      gap: calc(var(--spacing-unit) * 0.5);
    }

    .nav-item:hover {
      color: var(--primary-color);
      background: rgba(16, 81, 134, 0.05);
      transform: translateY(-2px);
    }

    .nav-item i {
      font-size: 1.2rem;
    }

    .main {
      display: flex;
      padding: 20px;
    }

    .sidebar {
      width: 200px;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

    .sidebar .module {
      position: relative;
      width: 100%;
    }

    .sidebar .circle {
      width: 100px;
      height: 100px;
      border-radius: 50%;
      margin-left: 50px;
    }

    .sidebar .label {
      position: absolute;
      top: 35px;
      left: 40px;
      background: var(--primary-color);
      color: white;
      border-radius: 10px;
      padding: 5px 10px;
      white-space: nowrap;
    }

    .content {
      flex: 1;
      margin-left: 40px;
    }

    .search-bar {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 10px;
    }

    .search-bar input {
      width: 300px;
      padding: 6px 12px;
      font-size: 16px;
    }

    .search-bar button {
      padding: 6px 20px;
      font-size: 16px;
      background: var(--primary-color);
      border: none;
      color: white;
      border-radius: 6px;
      cursor: pointer;
    }

    .tabs {
      margin-bottom: 10px;
    }

    .tabs span {
      margin-right: 20px;
      cursor: pointer;
      font-weight: bold;
      color: gray;
    }

    .tabs span:first-child {
      color: var(--primary-color);
    }

    .post-list {
      background: transparent;
      padding: 1rem;
      border-radius: var(--border-radius);
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .post {
      background: var(--white);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      border: 1px solid rgba(16, 81, 134, 0.1);
      transition: var(--hover-transition);
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: flex-start;
      gap: 1.5rem;
      cursor: pointer;
    }

    .post:hover {
      transform: translateY(-4px) translateX(2px);
      box-shadow: var(--hover-shadow);
      border-color: var(--primary-color);
    }

    .post:active {
      transform: translateY(-2px) translateX(1px);
      box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    .post-content {
      flex: 1;
      position: relative;
      z-index: 1;
    }

    .post-title {
      font-size: 1.25rem;
      font-weight: 600;
      color: var(--dark-text);
      margin-bottom: 0.75rem;
      line-height: 1.4;
      transition: var(--hover-transition);
    }

    .post:hover .post-title {
      color: var(--primary-color);
    }

    .post-meta {
      font-size: 0.9rem;
      color: var(--text-gray);
      margin-bottom: 0.75rem;
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .post-meta i {
      color: var(--primary-color);
      font-size: 1rem;
    }

    .post-description {
      font-size: 0.95rem;
      color: var(--dark-text);
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    .post-image {
      width: 120px;
      height: 120px;
      border-radius: 12px;
      object-fit: cover;
      transition: var(--hover-transition);
      border: 2px solid transparent;
    }

    .post:hover .post-image {
      transform: scale(1.05);
      border-color: var(--primary-color);
    }

    .post-icons {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      font-size: 0.9rem;
      color: var(--text-gray);
    }

    .post-icon-item {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      transition: var(--hover-transition);
      padding: 0.5rem;
      border-radius: 8px;
    }

    .post-icon-item:hover {
      background: rgba(16, 81, 134, 0.1);
      color: var(--primary-color);
    }

    .post-icon-item i {
      font-size: 1.1rem;
    }

    .hot-tag {
      position: absolute;
      top: 1rem;
      right: 1rem;
      background: linear-gradient(45deg, var(--accent-red), var(--primary-color));
      color: white;
      padding: 0.25rem 0.75rem;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 500;
      opacity: 0;
      transform: translateX(20px);
      transition: var(--hover-transition);
    }

    .post:hover .hot-tag {
      opacity: 1;
      transform: translateX(0);
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .post {
      animation: fadeInUp 0.5s ease forwards;
      opacity: 0;
    }

    .post:nth-child(n) {
      animation-delay: calc(0.1s * var(--i, 0));
    }

    @media (max-width: 768px) {
      .post {
        padding: 1rem;
        gap: 1rem;
      }

      .post-image {
        width: 80px;
        height: 80px;
      }

      .post-title {
        font-size: 1.1rem;
      }

      .post-meta {
        font-size: 0.85rem;
      }

      .post-description {
        font-size: 0.9rem;
      }
    }

    @media (max-width: 480px) {
      .post-image {
        display: none;
      }

      .post-icons {
        flex-wrap: wrap;
        gap: 1rem;
      }
    }

    .hot-search {
      margin-left: 30px;
      width: 200px;
    }

    .hot-search h3 {
      font-size: 16px;
      margin-bottom: 10px;
    }

    .hot-item {
      background: var(--light-bg);
      padding: 6px 10px;
      border-radius: 6px;
      margin-bottom: 6px;
      display: flex;
      justify-content: space-between;
    }

    .nav-search {
      position: relative;
      margin-right: calc(var(--spacing-unit) * 0.5);
      width: 36px;
      transition: var(--hover-transition);
    }

    .nav-search.active,
    .nav-search:focus-within {
      width: 200px;
    }

    .nav-search-input {
      width: 100%;
      padding: 6px 32px 6px 12px;
      border: 1px solid rgba(16, 81, 134, 0.2);
      border-radius: 20px;
      font-size: 14px;
      transition: var(--hover-transition);
      background: rgba(16, 81, 134, 0.05);
      color: var(--dark-text);
      opacity: 0;
      cursor: pointer;
    }

    .nav-search.active .nav-search-input,
    .nav-search:focus-within .nav-search-input {
      opacity: 1;
      cursor: text;
    }

    .nav-search-input:focus {
      outline: none;
      border-color: var(--primary-color);
      background: white;
      box-shadow: 0 0 0 3px rgba(16, 81, 134, 0.1);
    }

    .nav-search-input::placeholder {
      color: var(--text-gray);
    }

    .nav-search-icon {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      color: var(--text-gray);
      cursor: pointer;
      transition: var(--hover-transition);
      padding: 4px;
      z-index: 1;
    }

    .nav-search-icon:hover {
      color: var(--primary-color);
    }

    .nav-search-input:focus + .nav-search-icon {
      color: var(--primary-color);
    }

    .search-container {
      flex: 1;
      max-width: 500px;
      margin: 0 2rem;
      position: relative;
    }

    .el-input {
      position: relative;
      font-size: 14px;
      display: inline-block;
      width: 100%;
    }

    .el-input__inner {
      width: 100%;
      height: 40px;
      padding: 0 15px;
      border-radius: 20px;
      border: 1px solid rgba(16, 81, 134, 0.2);
      background: rgba(255, 255, 255, 0.9);
      transition: var(--hover-transition);
      backdrop-filter: blur(4px);
      color: var(--dark-text);
    }

    .el-input__inner:focus {
      outline: none;
      border-color: var(--primary-color);
      box-shadow: 0 0 0 2px rgba(16, 81, 134, 0.1);
    }

    .el-input__inner::placeholder {
      color: var(--text-gray);
    }

    .el-input__icon {
      position: absolute;
      right: 15px;
      top: 50%;
      transform: translateY(-50%);
      cursor: pointer;
      transition: var(--hover-transition);
      color: var(--primary-color);
    }

    .el-input__icon:hover {
      opacity: 0.8;
    }

    @media (max-width: 768px) {
      .search-container {
        margin: 0 1rem;
        max-width: 200px;
      }
      
      .el-input__inner {
        height: 36px;
        padding: 0 30px 0 12px;
      }
      
      .el-input__icon {
        right: 10px;
      }

      .brand-text-container {
        gap: calc(var(--spacing-unit));
      }
    }

    @media (max-width: 480px) {
      .search-container {
        max-width: 150px;
        margin: 0 0.5rem;
      }
      
      .el-input__inner::placeholder {
        font-size: 0.9em;
      }

      .brand-text-container {
        display: none;
      }
    }
  </style>
</head>
<body>
<nav id="nav">
  <div class="nav-container">
    <div class="brand-group">
      <img src="navbar_logo.png" alt="Logo" class="brand-logo">
      <div class="brand-text-container">
        <div class="brand-text">首页</div>
        <div class="brand-text active">讨论</div>
        <div class="brand-text">题库中心</div>
        <div class="brand-text">学习中心</div>
      </div>
    </div>
    
    <div class="search-container">
      <div class="el-input">
        <input 
          type="text" 
          class="el-input__inner" 
          placeholder="搜索题目或关键词..."
          style="padding-right: 35px;"
        >
        <i class="el-icon-search el-input__icon"></i>
      </div>
    </div>

    <div class="right-nav-user-group">
      <div class="nav-menu">
        <div class="avatar-wrapper">
          <img
            class="user-avatar"
            src="https://java-web-tias.oss-cn-hangzhou.aliyuncs.com/6FC54B77560A6A56ACF84A5908C6019C.gif"
            alt="用户头像"
          />
        </div>
        <div class="nav-item">
          <span>用户名</span>
        </div>
      </div>
    </div>
  </div>
</nav>

<div class="main">
  <div class="sidebar">
    <div class="module">
      <div class="circle" style="background: var(--accent-orange);"></div>
      <div class="label">课外拓展</div>
    </div>
    <div class="module">
      <div class="circle" style="background: var(--accent-green);"></div>
      <div class="label">学习模块</div>
    </div>
    <div class="module">
      <div class="circle" style="background: var(--primary-color);"></div>
      <div class="label">实际应用</div>
    </div>
    <div class="module">
      <div class="circle" style="background: var(--accent-red);"></div>
      <div class="label">应用技巧</div>
    </div>
    <div class="module">
      <div class="circle" style="background: var(--secondary-color);"></div>
      <div class="label">特别信息</div>
    </div>
  </div>

  <div class="content">
    <div class="search-bar">
      <input type="text" placeholder="搜索">
      <button>搜索</button>
      <button>发帖</button>
    </div>

    <div class="tabs">
      <span>推荐</span>
      <span>最近发布</span>
      <span>最多回复</span>
      <span>最多点赞</span>
    </div>

    <div class="post-list">
      <div class="post" style="--i: 0;">
        <div class="post-content">
          <div class="post-meta">
            <i class="el-icon-user"></i>
            <span>匿名用户</span>
            <i class="el-icon-time"></i>
            <span>2025.4.28</span>
          </div>
          <div class="post-title">我发现了石油！！！</div>
          <div class="post-description">
            震惊！！！<br>
            中国某地惊现石油踪迹<br>
            究竟是人性的扭曲还是道德的沦丧
          </div>
          <div class="post-icons">
            <div class="post-icon-item">
              <i class="el-icon-thumb"></i>
              <span>42</span>
            </div>
            <div class="post-icon-item">
              <i class="el-icon-chat-dot-round"></i>
              <span>42</span>
            </div>
            <div class="post-icon-item">
              <i class="el-icon-warning"></i>
              <span>不推荐</span>
            </div>
          </div>
        </div>
        <img class="post-image" src="https://via.placeholder.com/120" alt="帖子图片">
        <div class="hot-tag">热门</div>
      </div>

      <div class="post" style="--i: 1;">
        <div class="post-content">
          <div class="post-meta">
            <i class="el-icon-user"></i>
            <span>匿名用户</span>
            <i class="el-icon-time"></i>
            <span>2025.4.28</span>
          </div>
          <div class="post-title">我发现了石油！！！</div>
          <div class="post-description">
            震惊！！！<br>
            中国某地惊现石油踪迹<br>
            究竟是人性的扭曲还是道德的沦丧
          </div>
          <div class="post-icons">
            <div class="post-icon-item">
              <i class="el-icon-thumb"></i>
              <span>42</span>
            </div>
            <div class="post-icon-item">
              <i class="el-icon-chat-dot-round"></i>
              <span>42</span>
            </div>
            <div class="post-icon-item">
              <i class="el-icon-warning"></i>
              <span>不推荐</span>
            </div>
          </div>
        </div>
        <img class="post-image" src="https://via.placeholder.com/120" alt="帖子图片">
        <div class="hot-tag">热门</div>
      </div>
    </div>
  </div>

  <div class="hot-search">
    <h3>热搜榜单</h3>
    <div class="hot-item">
      <span>#2025最新题集</span><span>998,320</span>
    </div>
    <div class="hot-item">
      <span>#答辩成绩公布</span><span>876,410</span>
    </div>
  </div>
</div>

</body>
</html>
